﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using KPIS.GERP.GBMS.IBLL;
using KPIS.GERP.GBMS.MODEL;

namespace KPIS.GERP.GBMS.IBLL
{
    public interface IOptionBLL 
    {
        void Insert(string Code, string Name, string Description, int Parent, int Type, Nullable<int> Year);

        void Update(int Sequence, string Code, string Name, string Description, int Parent, int Type);

        void Delete(int Sequence);

        IList<OptionInfo> Search(int Sequence, int Type, Nullable<int> Year);

        IList<OptionInfo> Search(int Sequence, string Code, string Name, string Description, int Parent, int Type, Nullable<int> Year);

        IList<TreeViewInfo> TreeView(int Type);

        bool CheckDuplicateCode(string code);

        bool CheckDuplicateCode(string code, string sequence);
     }
}
